<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:outputStylesheet library="css" name="default.css"/>
    <h:head>
        <title>Mantenimiento de Directores</title>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid columns="6" columnClasses="alinizq,alinizq,alinisq,alinder,alinizq,alinizq">
                
                <p:outputLabel value="Id " for="dir001" styleClass="requiredLbl"/>
                <p:inputText value="#{ctrDirectores.activeReg.ncodigo}" id="dir001"/>
                <h:message for="dir001"/>
                <h:panelGroup/><h:panelGroup/><h:panelGroup/>
                <p:outputLabel value=" Nombre " for="dir002" styleClass="requiredLbl"/>
                <p:inputText value="#{ctrDirectores.activeReg.cnombre}" id="dir002"/>
                <h:message for="dir002"/>
             
                <p:outputLabel value=" Apellidos " for="dir003" styleClass="requiredLbl"/>
                <p:inputText value="#{ctrDirectores.activeReg.capellidos}" id="dir003"/>
                <h:message for="dir003"/>
                <p:outputLabel value="Despacho " for="dir004" styleClass="optionalLbl"/>
                <p:inputText value="#{ctrDirectores.activeReg.cdespacho}" id="dir004"/>
                <h:message for="dir004"/>
          
                <p:outputLabel value="Teléfono " for="dir005" styleClass="optionalLbl"/>
                <p:inputText value="#{ctrDirectores.activeReg.ctelefono}" id="dir005"/>
                <h:message for="dir005"/>
                <p:outputLabel value=" E-mail " for="dir006" styleClass="optionalLbl"/>
                <p:inputText value="#{ctrDirectores.activeReg.cmail}" id="dir006"/>
                <h:message for="dir006"/>
                <h:panelGroup/><h:panelGroup/><h:panelGroup/>
                <h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/>        
                <h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/>
                <h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/>
                <h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/>
                <h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/>
                <h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/>
                
                <p:commandButton actionListener="#{ctrDirectores.save}" value="Save"/>
                <p:commandButton value="Delete" actionListener="#{ctrDirectores.delete}" >
                     <p:confirm header="Confirmación" message="¿Esta seguro que quiere borrar este alumno?" icon="ui-icon-alert" />
                </p:commandButton>
 
                <p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
                    <p:commandButton value="Si" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
                    <p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
                </p:confirmDialog>
        
           </h:panelGrid>

         </h:form>
    </h:body>
</html>

